import request from '@/utils/request'

// 查询地图分区信息列表
export function listDispatchMapZone(query) {
  return request({
    url: '/system/dispatchMapZone/list',
    method: 'get',
    params: query
  })
}

// 查询地图分区信息详细
export function getDispatchMapZone(zoneId) {
  return request({
    url: '/system/dispatchMapZone/' + zoneId,
    method: 'get'
  })
}

// 新增地图分区信息
export function addDispatchMapZone(data) {
  return request({
    url: '/system/dispatchMapZone',
    method: 'post',
    data: data
  })
}

// 修改地图分区信息
export function updateDispatchMapZone(data) {
  return request({
    url: '/system/dispatchMapZone',
    method: 'put',
    data: data
  })
}

// 删除地图分区信息
export function delDispatchMapZone(zoneId) {
  return request({
    url: '/system/dispatchMapZone/' + zoneId,
    method: 'delete'
  })
}
